<!--

    $URL$
    $Id$

    Copyright (c) 2006-2009 The Sakai Foundation

    Licensed under the Educational Community License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

                http://www.osedu.org/licenses/ECL-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<html  
      xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:wicket="http://wicket.sourceforge.net/"  
      xml:lang="en"  
      lang="en">
    <head>        
        <wicket:head>
            <script type="text/javascript">
                function showExportButtons(){
                    jQuery('.export').hide();
                    jQuery('.exportButtons').fadeIn();
                }
            </script>
        </wicket:head>
    </head>
    <body>
        <wicket:extend>
        

            <div class="portletBody">
            <!-- Menu -->
            <menu wicket:id="menu" class="navIntraTool">[menu]</menu>
            <div style="width:100% !important" class="content">            
	            <!-- Last Job run -->
	            <span wicket:id="lastJobRun"></span>
	        
	            <!-- Print link -->
	            <span wicket:id="toPrintVersion" style="float: right; padding-top: 12px; padding-right: 2px; clear:both">
	                <span class="fa fa-print" aria-hidden="true" wicket:message="title:reportres_printversion"></span>
	                <a wicket:id="printLink" wicket:message="title:reportres_printversion" >
	                    <wicket:message key="reportres_printversion">[reportres_printversion]</wicket:message>
	                </a>
	            </span>
	            <!-- Print info -->
		        <span wicket:id="inPrintVersion" class="act noprint">
		            <span class="fa fa-print" aria-hidden="true" wicket:message="title:reportres_print"></span>
		            <a href="#" onclick="window.print(); return false;" wicket:message="title:reportres_print" >
	                    <wicket:message key="reportres_print">[reportres_print]</wicket:message>
	                </a>
		        </span>
	        
	            <!-- Page title -->
                <div class="page-header">
                    <h1>
	                    <span wicket:id="reportAction"></span>
                    </h1>
                </div>

	            <!-- Header: data information -->
	            <table class="summaryTable">
                    <tbody>
                        <tr wicket:id="trDescription">
                            <td class="autoSize labelColumn">
                                <label class="indnt0">
                                    <wicket:message key="reportres_summ_description">[reportres_summ_description]</wicket:message>
                                </label>
                            </td>
                            <td class="autoSize">
                                <span wicket:id="reportDescription"></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="autoSize labelColumn">
                                <label class="indnt0">
                                    <wicket:message key="reportres_summ_site">[reportres_summ_site]</wicket:message>
                                </label>
                            </td>
                            <td class="autoSize">
                                <span wicket:id="reportSite"></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="autoSize labelColumn">
                                <label class="indnt0">
                                    <wicket:message key="reportres_summ_act_basedon">[reportres_summ_act_basedon]</wicket:message>
                                </label>
                            </td>
                            <td class="autoSize">
                                <span wicket:id="reportActivityBasedOn"></span>
                            </td>
                        </tr>
                        <tr wicket:id="trResourceAction">
                            <td class="autoSize labelColumn">
                                <label class="indnt0">
                                    <span wicket:id="reportResourceActionTitle">[reportResourceActionTitle]</span>
                                </label>
                            </td>
                            <td class="autoSize">
                                <span wicket:id="reportResourceAction"></span>
                            </td>
                        </tr>
                        <tr wicket:id="trActivitySelection">
                            <td class="autoSize labelColumn">
                                <label class="indnt0">
                                    <span wicket:id="reportActivitySelectionTitle">[reportActivitySelectionTitle]</span>
                                </label>
                            </td>
                            <td class="autoSize">
                                <span wicket:id="reportActivitySelection"></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="autoSize labelColumn">
                                <label class="indnt0">
                                    <wicket:message key="reportres_summ_timeperiod">[reportres_summ_timeperiod]</wicket:message>
                                </label>
                            </td>
                            <td class="autoSize">
                                <span wicket:id="reportTimePeriod"></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="autoSize labelColumn">
                                <label class="indnt0">
                                    <wicket:message key="reportres_summ_usr_selectiontype">[reportres_summ_usr_selectiontype]</wicket:message>
                                </label>
                            </td>
                            <td class="autoSize">
                                <span wicket:id="reportUserSelectionType"></span>
                            </td>
                        </tr>
                        <tr wicket:id="trReportUserSelection">
                            <td class="autoSize labelColumn">
                                <label class="indnt0">
                                    <span wicket:id="reportUserSelectionTitle">[reportUserSelectionTitle]</span>
                                </label>
                            </td>
                            <td class="autoSize">
                                <span wicket:id="reportUserSelection"></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="autoSize labelColumn">
                                <label class="indnt0">
                                    <wicket:message key="reportres_summ_generatedon">[reportres_summ_generatedon]</wicket:message>
                                </label>
                            </td>
                            <td class="autoSize">
                                <span wicket:id="reportGenerationDate"></span>
                            </td>
                        </tr>
                    </tbody>
                </table>
	            
                    
                <!-- Report chart -->
                <div wicket:id="reportChart" style="height: 300px; margin-top: 20px;" class="chartContainer"></div>
	            
	            
	            <!-- FORM -->
	            <form wicket:id="form">
		            
		            <!-- Report table -->
		            <div class="table">
		              <table class="table table-hover table-bordered table-striped" style="width: 99.9% !important" cellspacing="0" wicket:id="table">[table]</table>
		            </div>
		                
		            <!-- BUTTONS -->
		            <p class="act noprint">
		                <input type="submit" wicket:id="back" wicket:message="value:report_back" class="active"/>
		                <input type="submit" wicket:id="export" wicket:message="value:bt_export" onclick="showExportButtons();return false;" class="export"/>
		                
		                <input type="submit" wicket:id="exportXls" wicket:message="value:bt_export_excel" class="exportButtons" style="display:none;"/>
		                <input type="submit" wicket:id="exportCsv" wicket:message="value:bt_export_csv" class="exportButtons" style="display:none;"/>
		                <input type="submit" wicket:id="exportPdf" wicket:message="value:bt_export_pdf" class="exportButtons" style="display:none;"/>
		            </p>
	            </form>            
            </div>
		</div>
  
        </wicket:extend>
    </body>
</html>
